var pm = context.getPackageManager()
    var appList = pm.getInstalledApplications(0)

    for (let i = 0; i < appList.size(); i++) {
        var app_ = appList.get(i)
        log(app_.loadLabel(pm))
        var appInfo = {
            appName: app_.loadLabel(pm),
            packageName: app_.packageName,
            lastUpdateTime: pm.getPackageInfo(app_.packageName, 0).lastUpdateTime
        }
        
    }